package com.mrzhou.system.req;

import com.mrzhou.system.entity.RoleMenu;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author qiang.zhou
 */
@Getter
@Setter
public class EditRoleReq {

    @ApiModelProperty("需要调整的用户id")
    @NotNull(message = "需要编辑的用户不能为空")
    private Long userId;

    @ApiModelProperty("用户权限菜单")
    @NotEmpty(message = "用户权限不能为空")
    private List<RoleMenu> roleMenuList;

}
